import request from '@/utils/request'
export const getSearch = (data) => request.get('/api/vm-service/policy/search/', { params: data })
export const delPolicy = (policyId, data) => request.delete(`/api/vm-service/policy/${policyId}`, { query: data })
export const postPolicy = (data) => request.post('/api/vm-service/policy', data)
export const putPolicy = (policyId, data) => request.put(`/api/vm-service/policy/${policyId}`, data)
export const getVmList = (policyId, data) => request.get(`/api/vm-service/policy/vmList/${policyId}`, { params: data })

export const getOrderSearch = (data) => request.get('/api/order-service/order/search', { params: data })
